package io.renren.modules.department.service;


import io.renren.modules.department.model.DepartmentBo;
import io.renren.modules.department.model.DepartmentEntity;
import io.renren.modules.department.model.DepartmentVo;
import io.renren.modules.sys.entity.SysMenuEntity;

import java.util.List;

/**
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-11-18 15:23:46
 */
public interface DepartmentService {

    List<DepartmentVo> queryList();

    DepartmentEntity getById(Integer id);

    Integer save(DepartmentBo departmentBo);

    Integer updateById(DepartmentBo departmentBo);

    Integer removeByIds(List<Integer> idList);

    /**
     * 根据父节点，查询子部门
     * @param parentId 父菜单ID
     */
    List<DepartmentEntity> queryListParentId(Long parentId);
}

